import { ADDRESS_LIST_DATA,SHOW_CHICE_ADDRESS } from "../actions/actionsTypes"

export default function addressListReducer(state={isShowChice:true}, action) {
	switch (action.type) {
		case ADDRESS_LIST_DATA:
			return Object.assign({}, state, {addressList: action.data});
		case SHOW_CHICE_ADDRESS:
			return Object.assign({}, state, {isShowChice: action.data});
		default:
			return state;
	}
}
